package com.zyl.edthresholdtraining.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * InnoDB free: 48128 kB
 * </p>
 *
 * @author zhangyulu
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_time_partition_allow")
@ApiModel(value="TimePartitionAllow对象", description="InnoDB free: 48128 kB")
public class TimePartitionAllow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "时间分区")
    private String timePartition;

    @ApiModelProperty(value = "被试该区间开始测试时间")
    private Long startTime;

    @ApiModelProperty(value = "被试结束测试时间")
    private Long endTime;

    @ApiModelProperty(value = "每个时间分区的唯一标识")
    private String timePartitionUuid;

    @ApiModelProperty(value = "时间标记2020-08-01")
    private String dateMark;


    @ApiModelProperty(value = "被试在某个测试区间已经测试的时间(会随着被试的测试而变化）毫秒")
    private Long testTime;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_Time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
